package org.bonorsoft.modules.control.mapper;

import org.apache.ibatis.annotations.Select;
import org.bonorsoft.modules.control.entity.TreeData;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface InforMapper {

    @Select("select " +
            "JWQDM as dept_id, " +
            "SSPCS as parent_id, " +
            "JWQMC as dept_name " +
            "from ybss_bzdz_jwq " +
            "where SSPCS = #{id} " +
            "ORDER BY SYZTDM ASC")
    List<TreeData> selectTreeData(String id, HttpServletRequest req);

    List<TreeData> selectChildData(String[] pIds);

    List<TreeData> selectChildrenData(String[] split);
}
